package pers.ljf.escloud.common.utils;

import pers.ljf.escloud.common.dto.AppLoginUserInfo;

public class UserInfoUtils {

    public UserInfoUtils() {
    }
    private static final ThreadLocal<AppLoginUserInfo> LOCAL = new ThreadLocal<>();

    public static void set(AppLoginUserInfo info) {
        LOCAL.set(info);
    }
    public static AppLoginUserInfo get(){
       return LOCAL.get();
    }
    public static void remove(){
        LOCAL.remove();
    }
}
